from rest_framework.serializers import ModelSerializer

from models.models import AgentPackage, AgentChannel, VipPackage


class AgentChannelSerializer(ModelSerializer):
    class Meta:
        model = AgentChannel
        fields = "__all__"


class AgentPackageSerializer(ModelSerializer):
    channel = AgentChannelSerializer(many=True)

    class Meta:
        model = AgentPackage
        fields = "__all__"


class VipPackageSerializer(ModelSerializer):
    class Meta:
        model = VipPackage
        fields = "__all__"
